{include file="header.html"}
<div id="rightTop">
    <p>{$lang.attribute}</p>
    <ul class="subnav">
        <li><span>{$lang.manage}</span></li>
        <li><a class="btn1" href="index.php?app=attribute&amp;act=add">{$lang.add}</a></li>
    </ul>
</div>
<div class="mrightTop">
    <div class="fontl">
        <form method="get">
            <div class="left">
                <input type="hidden" name="app" value="attribute" />
                <input type="hidden" name="act" value="index" />
                {$lang.attr_name}
                <input class="queryInput" type="text" name="attr_name" value="{$query.attr_name|escape}" />
                <input type="submit" class="formbtn" value="{$lang.query}" />
            </div>
            <!--{if $filtered}-->
            <a class="left formbtn1" href="index.php?app=attribute">{$lang.cancel_query}</a>
            <!--{/if}-->
        </form>
    </div>
    <div class="fontr">
        {include file=page.top.html}
    </div>
    <div class="clear:both;"></div>
</div>
<div class="tdare">
    <table width="100%" cellspacing="0" class="dataTable">
        <!--{if $attributes}-->
        <tr class="tatr1">
            <td width="20" class="firstCell"><input type="checkbox" class="checkall" /></td>
            <td align="left">{$lang.attr_name}</td>
            <td align="left">{$lang.attributeset}</td>
            <td width="30%">{$lang.def_value}</td>
            <td width="30%">{$lang.sort_order}</td>
            <td width="20%" style="text-align:center;">{$lang.handler}</td>
        </tr>
        <!--{/if}-->
        <!--{foreach from=$attributes item=attribute}-->
        <tr class="tatr2">
            <td class="firstCell"><input type="checkbox" class="checkitem" value="{$attribute.attr_id}"/></td>
            <td>{$attribute.attr_name|escape}</td> 
            <td>{if $attribute.input_mode eq 'select'}{$lang.select}{else}{$lang.text}{/if}</td>             
            <td>{$attribute.def_value|escape}</td>               
            <td>
	            <!--{if $attribute.sort_order}-->
	            <span ectype="inline_edit" fieldname="sort_order" fieldid="{$attribute.attr_id}" datatype="pint" maxvalue="255" class="editable">{$attribute.sort_order}</span>
	            <!--{/if}-->
            </td>
            <td style="text-align:center;">
            	<a href="index.php?app=attribute&amp;act=edit&amp;id={$attribute.attr_id}">{$lang.edit}</a>
                <a href="javascript:drop_confirm('{$lang.drop_confirm}', 'index.php?app=attribute&amp;act=drop&amp;id={$attribute.attr_id}');">{$lang.drop}</a>
            </td>
        </tr>
        <!--{foreachelse}-->
        <tr class="no_data">
            <td colspan="7">{$lang.no_data}</td>
        </tr>
        <!--{/foreach}-->
    </table>
    <!--{if $attributes}-->
    <div id="dataFuncs">
        <div class="pageLinks">
            {include file=page.bottom.html}
        </div>
        <div id="batchAction" class="left paddingT15">
            &nbsp;&nbsp;
            <input class="formbtn batchButton" type="button" value="{$lang.drop}" name="id" uri="index.php?app=attribute&act=drop" presubmit="confirm('{$lang.drop_confirm}');" />
            &nbsp;&nbsp;
            <!--<input class="formbtn batchButton" type="button" value="lang.update_order" name="id" presubmit="updateOrder(this);" />-->
        </div>
        <div class="clear:both;"></div>
    </div>
    <div class="clear"></div>
    <!--{/if}-->
</div>
{include file="footer.html"}
